#ifndef FILEVIEWER_H
#define FILEVIEWER_H

#include <QtGui/QWidget>
#include "ui_fileviewer.h"
#include "page.h"
#include <poppler-qt4.h>
#include <QtGui/QMessageBox>
#include <QtGui/QLabel>
#include <QtGui/QHeaderView>
#include <QThread>

/*!
 * Panel boczny prezetujacy podglad stron dokumentu.
 *
 * \attention{Wymaga dopracowania}
 */
class FileViewer : public QWidget {
    Q_OBJECT

public:
    FileViewer(QWidget *parent = 0);
    ~FileViewer();


private:
    Ui::FileViewerClass ui;

signals:
    void pageChanged(int currentPage);
    void showPage(int page=-1);

private:
    Poppler::Document *doc;
    int currentPage;

public slots:
	void documentLoaded(Poppler::Document *doc);
	void pageSelected(int page);
	void setPage(int page = -1);
};

#endif // FILEVIEWER_H
